|
|
Just got this idea that I wanted to try, a simple caleidoscope. The code
shows use of patterns, but anything is possible of course. Enjoy!
Code:
#version 3.6;
global_settings {
assumed_gamma 1.0
max_trace_level 7
}
camera {
location -z*20
direction 1.5*z
right x*image_width/image_height
look_at 0
}
light_source {
<-10, 0, -10>
color rgb <1,1,1>
}
#declare thePattern = texture {
pigment {
spiral2 6 // onion // cells // crackle // wood // agate
color_map {
[0.0 color rgb <1,1,0>]
[0.5 color rgb <1,0,0>]
[0.5 color rgb <0,1,1>]
[1.0 color rgb <0,0,1>]
}
//turbulence 1
}
finish { diffuse 1 }
}
plane { -z, 0 texture { thePattern } }
union {
box { <-2,1,-20>, <2,1.1,0> }
box { <-2,1,-20>, <2,1.1,0> rotate z*120 }
box { <-2,1,-20>, <2,1.1,0> rotate -z*120 }
texture {
pigment { color rgb <1,1,1> }
finish {
diffuse 0
ambient 0
reflection 1
}
}
no_shadow
}
Post a reply to this message
Attachments:
Download 'caleidoscope.jpg' (206 KB)
Preview of image 'caleidoscope.jpg'
|
|